public class TaxInfoModel extends Object implements XMLMarshallable
Java class specifies the tax settings of a subscriber account
in customer master data.
The SAP CC system uses this information when calculating the tax data (amounts, ...):
specific tax settings (different for each invoicing tax system)NO_TAX
EZTAX_AREA (for EZTax)
BY_RULE (for VAT system with rules)
/<COUNTRY_CODE>/ (for VAT system without rule: An ISO 3166 country code) Examples: /FR/, /DE/, /ES/, ...)
Consult the SAP CC Application Help about tax management feature and configuration.
TaxDataModel,
SubscriberAccountModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="taxInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="taxData" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="taxationModule" type="AccountTaxationModuleType" default="vatTaxationModule"/> <!-- invoicing tax system -->
<xs:attribute name="taxCode" type="xs:string" default="NO_TAX"/> <!-- See country code embedded with slashes -->
<xs:attribute name="taxationMode" type="AccountTaxationModeType" default="vendorSubjectToPay"/>
</xs:complexType>
</xs:element><xs:simpleType name="AccountTaxationModuleType"> <xs:restriction base="xs:string"> <xs:enumeration value="nopTaxationModule"/> <xs:enumeration value="vatTaxationModule"/> <!-- EU VAT system or flat tax system --> <xs:enumeration value="eztaxTaxationModule"/> <!-- US EZTax system --> </xs:restriction> </xs:simpleType>
<xs:simpleType name="AccountTaxationModeType"> <xs:restriction base="xs:string"> <xs:enumeration value="vendorSubjectToPay"/> <xs:enumeration value="buyerSubjectToPay"/> <xs:enumeration value="buyerExempted"/> <xs:enumeration value="noTax"/> </xs:restriction> </xs:simpleType>
| Constructor and Description |
|---|
TaxInfoModel() |
TaxInfoModel(com.highdeal.tax.Tax.TaxationModule taxationModule,
String taxCode,
com.highdeal.tax.Tax.TaxationMode taxationMode,
TaxDataModel taxData)
Builds a tax information
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
com.highdeal.tax.Tax.TaxationMode |
getTaxationMode()
Gets the taxation mode for the account
see
TaxationMode |
com.highdeal.tax.Tax.TaxationModule |
getTaxationModule()
Gets the tax system for the account
see
TaxationModule |
String |
getTaxCode()
Gets the tax code for the account
|
TaxDataModel |
getTaxData()
Returns all set tax data, as a
Properties with
names as key and values as values. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setTaxationMode(com.highdeal.tax.Tax.TaxationMode taxationMode)
Sets the taxation mode for the account
|
void |
setTaxationModule(com.highdeal.tax.Tax.TaxationModule taxationModule)
Sets the tax system for the account
|
void |
setTaxCode(String taxCode)
Sets the tax code for the account
|
void |
setTaxData(TaxDataModel taxData)
Sets the taxation data
|
String |
toString()
Returns a string representation of the tax information
|
public TaxInfoModel()
public TaxInfoModel(com.highdeal.tax.Tax.TaxationModule taxationModule,
String taxCode,
com.highdeal.tax.Tax.TaxationMode taxationMode,
TaxDataModel taxData)
taxationModule - The tax system, see AccountTaxationModuleType to know available modules to tax this accounttaxCode - The code of the tax which is associated to the accounttaxationMode - The taxation mode, see the AccountTaxationModeType to know available modes to tax this accounttaxData - The specific EZTax data for this accountpublic void setTaxData(TaxDataModel taxData)
taxData - The taxation datapublic TaxDataModel getTaxData()
Properties with
names as key and values as values.Propertiespublic com.highdeal.tax.Tax.TaxationModule getTaxationModule()
TaxationModulepublic void setTaxationModule(com.highdeal.tax.Tax.TaxationModule taxationModule)
taxationModule - The taxation module for this account
see TaxationModule to know available modules to tax this accountpublic String getTaxCode()
public void setTaxCode(String taxCode)
taxCode - The tax code for this accountpublic com.highdeal.tax.Tax.TaxationMode getTaxationMode()
TaxationModepublic void setTaxationMode(com.highdeal.tax.Tax.TaxationMode taxationMode)
taxationMode - The taxation mode for this account
see TaxationMode to know available modes to tax this accountpublic String toString()
public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into